package cn.redsoft.turingapi.msg;

import java.util.ArrayList;
import java.util.List;

public class TrainMsg extends BaseMsg {
	public TrainMsg() {
		this.msgType = TuringMsgType.train;
	}

	private List<TrainItem> list = new ArrayList<TrainMsg.TrainItem>();

	public static class TrainItem {
		private String endtime;
		private String icon;
		private String starttime;
		private String detailurl;
		private String terminal;
		private String start;
		private String trainnum;

		public TrainItem() {
		}

		public TrainItem(String endtime, String icon, String starttime,
				String detailurl, String terminal, String start, String trainnum) {
			super();
			this.endtime = endtime;
			this.icon = icon;
			this.starttime = starttime;
			this.detailurl = detailurl;
			this.terminal = terminal;
			this.start = start;
			this.trainnum = trainnum;
		}

		public String getEndtime() {
			return endtime;
		}

		public void setEndtime(String endtime) {
			this.endtime = endtime;
		}

		public String getIcon() {
			return icon;
		}

		public void setIcon(String icon) {
			this.icon = icon;
		}

		public String getStarttime() {
			return starttime;
		}

		public void setStarttime(String starttime) {
			this.starttime = starttime;
		}

		public String getDetailurl() {
			return detailurl;
		}

		public void setDetailurl(String detailurl) {
			this.detailurl = detailurl;
		}

		public String getTerminal() {
			return terminal;
		}

		public void setTerminal(String terminal) {
			this.terminal = terminal;
		}

		public String getStart() {
			return start;
		}

		public void setStart(String start) {
			this.start = start;
		}

		public String getTrainnum() {
			return trainnum;
		}

		public void setTrainnum(String trainnum) {
			this.trainnum = trainnum;
		}

		@Override
		public String toString() {
			return "TrainItem [endtime=" + endtime + ", icon=" + icon
					+ ", starttime=" + starttime + ", detailurl=" + detailurl
					+ ", terminal=" + terminal + ", start=" + start
					+ ", trainnum=" + trainnum + "]";
		}

	}

	public List<TrainItem> getList() {
		return list;
	}

	public void setList(List<TrainItem> list) {
		this.list = list;
	}

	@Override
	public String toString() {
		return "TrainMsg [list=" + list + ", code=" + code + ", text=" + text
				+ ", msgType=" + msgType + "]";
	}

}
